﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace TrafficLightSim
{
    enum LaneType { Horizontal, Vertical };
    public class Lane
    {
        #region Field region

        Rectangle laneRect;
        float speedLimit; //speed limit of each lane
        Direction direction; //lane direction
        LaneType type; //type of the lane (horizontal or vertical)
        public static int size = 40;

        #endregion

        #region Property region

        public Direction Direction
        {
            get { return direction; }
            set { direction = value; }
        }

        public Rectangle LaneRect
        {
            get { return laneRect; }
            set { laneRect = value; }
        }

        #endregion

        public Lane(Direction direction)
        {
            this.direction = direction;
        }
    }
}
